﻿using System;
using UnityEditor;

public class FloatDrawType : BaseDrawType
{
    public override Type type { get { return typeof(float); } }
    public override string Draw(string name, string arg)
    {
        float value;
        float.TryParse(arg, out value);
        return EditorGUILayout.FloatField(name, value).ToString();
    }
}
